import csv

row = ['7','zhangsan','23']
out = open("test.scv","a+")
write = csv.writer(out,dialect="excel")
write.writerow(row)
out.close()
print("write ok")